package net.qhzw.geologr5.gis.service.system.controller;

import net.qhzw.geologr5.gis.common.framework.utils.JsonResult;
import net.qhzw.geologr5.gis.service.system.entity.DictSoftnail;
import net.qhzw.geologr5.gis.service.system.service.DictSoftnailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("dictSoftnail")
public class DictSoftnailController {


    @Autowired
    private DictSoftnailService dictSoftnailService;

    /***
     * 查询软件列表
     * @return
     */
    @GetMapping("getSoftnail")
    public JsonResult getSoftnail() {
        return dictSoftnailService.getSoftnail();
    }


    /***
     * 新增编辑软件表
     * @param dictSoftnail
     * @return
     */
    @PostMapping("edit")
    public JsonResult edit(@RequestBody DictSoftnail dictSoftnail) {
        return dictSoftnailService.edit(dictSoftnail);
    }


    /***
     * 根据id删除软件表
     * @param ids
     * @return
     */
    @DeleteMapping("delete/{ids}")
    public JsonResult delete(@PathVariable Integer[] ids) {
        return dictSoftnailService.delete(ids);
    }


}
